#include <stdio.h>

int calc_data(int data1,int data2)
{
	if(data1 > data2)
	{
		return data1;
	}
	else
	{
		return data2;
	}
}

int main()
{
	int a,b;
	int max_value;
	int sum;
	scanf("%d%d",&a,&b);
	max_value = calc_data(a,b);
	sum = a+b;
	printf("max = %d   sum = %d \n ",max_value,sum);
}
